package com.atguigu.consumer.api.blockHandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import lombok.extern.slf4j.Slf4j;

/**
 * @author 郑启
 * @date 2021/09/27 15:44
 */
@Slf4j
public class UserBlockHandler {

	public static String getTimeout(BlockException ex) {
		log.error("getTimeout 方法异常：", ex);
		return "getTimeout 方法异常";
	}

	public static String getDivide(int divisor, BlockException ex) {
		log.error("getDivide 方法异常，传入参数divisor:[{}]，异常：", divisor, ex);
		return "getDivide 方法异常";
	}

	public static String getConfigInfo(BlockException ex) {
		log.error("getConfigInfo 方法异常：", ex);
		return "getConfigInfo 方法异常";
	}
}
